package com.lagou.edu.common;

/**
 * @ClassName BusinessException
 * @Description TODO
 * @Auth ying.xiao
 * @Date 2021/4/21
 * @Version 1.0.0
 */
public class BusinessException extends RuntimeException {
    private static final long serialVersionUID = -5317007026578376164L;
    private String errorCode;
    private String errorMsg;

    public BusinessException(String errorCode, String errorMsg) {
        super(String.format("BusinessException{errorCode:%s, errorMsg:%s}", errorCode, errorMsg));
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public String getErrorCode() {
        return this.errorCode;
    }

    public String getErrorMsg() {
        return this.errorMsg;
    }
}
